{OVERALL_HEADER}
<script>
function change_transfer(field)
{
	
	var str = field.value;
	if(str != '')
	{	
		username = str.substring(0,str.indexOf('|'));
		project_id = str.substring(str.indexOf('|')+1,str.length);
		document.getElementById('username').value = username;
		document.getElementById('project_id').value = project_id;
	}
	else
	{
		document.getElementById('username').value = '';
		document.getElementById('project_id').value = '';
	}	
}
</script>
<div id="column">
	{OVERALL_LEFT_MENU}
</div>
<div id="content">
IF("{TYPE}"=="Buyer"){
	<div style="display: none;"> 	
{:IF}
	<div id="id_tranfer">
		<br>
		<span class="header1">Send Money to a {TYPE}</span><br><br>
		<div><strong>1. Fill in transfer details:</strong></div><br>
		<div class="tranfer_title">Importance Notice </div>
		<div>
			This payment method is final. We always recommend to use our free escrow system especially for payments sent in advance before job is completed.
		</div><br>
		<div class="tranfer_title">
			Details of Transfer
		</div>
		
	</div>      
	<div class="tranfer_left">
	<form name="form1" method="post" action="">
		<div><strong>Please choose reason of transfer:</strong></div>
		<input name="reason" type="text" id="reason" size="68" class="normal">        
        <br><br>        
		IF("{NUM_PROJECTS}"!="0"){
        <select name="select_user" style="width:170px;" onChange="change_transfer(this);">
          <option value="" selected>Select a project</option>
		  {LOOP: CLOSED_PROJECT}
		  <option value="{CLOSED_PROJECT.provider}|{CLOSED_PROJECT.id}">{CLOSED_PROJECT.title}</option>
		  {/LOOP: CLOSED_PROJECT}
        </select>
        <br><br>{:IF}
        <strong>{TYPE} {LANG_USERNAME}:</strong><br>
        <input name="username" type="text" id="username" style="width:170px;">
        <input name="project_id" type="hidden" id="project_id" style="width:170px;">
        <br>
        <br>
        <strong>How much money would you like to transfer to their account:</strong><br>
  {CURRENCY_SIGN}
		  <input name="amount" type="text" id="amount" size="6" class="normal">
		  <br>
		  <br>
		  <br>
		  <input type="submit" name="Submit" value="{LANG_SENDPAY}" onclick="return confirm('Are you sure you want to transfer these funds?');">
		  <br>
		  <br>
		   </form>
	</div>
	<div class="tranfer_right">
		<div class="tranfer_balance">
			<strong>Your balance $: </strong>
			{BALANCE}
		</div>
	</div>
	<div style="clear:both;"></div>
IF("{TYPE}"=="Buyer"){
	</div>
{:IF}	
</div>
<div style="clear:both;"></div>  
{OVERALL_FOOTER}